import request from '@/utils/request'

// 查询工序配置列表
export function listProcessset(query) {
  return request({
    url: '/zndd/processset/list',
    method: 'get',
    params: query
  })
}

// 查询工序配置详细
export function getProcessset(id) {
  return request({
    url: '/zndd/processset/' + id,
    method: 'get'
  })
}

// 新增工序配置
export function addProcessset(data) {
  return request({
    url: '/zndd/processset',
    method: 'post',
    data: data
  })
}

// 修改工序配置
export function updateProcessset(data) {
  return request({
    url: '/zndd/processset',
    method: 'put',
    data: data
  })
}

// 删除工序配置
export function delProcessset(id) {
  return request({
    url: '/zndd/processset/' + id,
    method: 'delete'
  })
}

//根据条件查询工序配置列表
export function listProcessSetQuery(query) {
  return request({
    url: '/zndd/processset/listQuery',
    method: 'get',
    params: query
  })
}